package com.imooc;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @ClassName WarStarterApplication
 * @Description war包启动类
 * @Author xuhang1
 * @Data 2020/5/14 14:16
 * @Version 1.0
 **/
public class WarStarterApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
        // 指向springbootApplication 启动类
        return builder.sources(Application.class);
    }
}
